package com.anycl.spring.web.service.impl;

import com.anycl.spring.web.dao.SpittleRepository;
import com.anycl.spring.web.entity.Spittle;
import com.anycl.spring.web.service.SpittleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SpittleServiceImpl implements SpittleService {

    @Autowired
    private SpittleRepository spittleRepository;

    @Override
    public List<Spittle> findAll() {
        return spittleRepository.findAll();
    }
}
